package com.ruoyi.db.domain.system;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 用户参与定返活动记录对象 mp_client_return_record
 * 
 * @author ruoyi
 * @date 2022-08-05
 */
@ApiModel(value = "MpClientReturnRecord",description = "用户参与定返活动记录对象 mp_client_return_record")
public class MpClientReturnRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户参与定返活动记录 */
    private Long id;

    /** 用户ID */
    @ApiModelProperty(value="用户ID",name="MpClientReturnRecord$clientId")
    @Excel(name = "用户ID")
    private Long clientId;

    /** 参与时间 */
    @ApiModelProperty(value="参与时间",name="MpClientReturnRecord$takeTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "参与时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date takeTime;

    /** 购买份数 */
    @ApiModelProperty(value="购买份数",name="MpClientReturnRecord$buyPartCount")
    @Excel(name = "购买份数")
    private Long buyPartCount;

    /** 参与的总银藻数 */
    @ApiModelProperty(value="参与的总银藻数",name="MpClientReturnRecord$takeAmount")
    @Excel(name = "参与的总银藻数")
    private BigDecimal takeAmount;

    /** 已返回的银藻数 */
    @ApiModelProperty(value="已返回的银藻数",name="MpClientReturnRecord$haveReturnAmount")
    @Excel(name = "已返回的银藻数")
    private BigDecimal haveReturnAmount;

    /** 是否返回完全.1，是，0否 */
    @ApiModelProperty(value="是否返回完全.1，是，0否",name="MpClientReturnRecord$isSettle")
    @Excel(name = "是否返回完全.1，是，0否")
    private Integer isSettle;

    /** 定返活动ID */
    @ApiModelProperty(value="定返活动ID",name="MpClientReturnRecord$returnId")
    @Excel(name = "定返活动ID")
    private Long returnId;
    private String returnName;
    private String clientName;
    private String mobile;

    public BigDecimal getPartAmount() {
        return partAmount;
    }

    public void setPartAmount(BigDecimal partAmount) {
        this.partAmount = partAmount;
    }

    private BigDecimal partAmount;

    public String getClientName() {
        return clientName;
    }

    public void setClientName(String clientName) {
        this.clientName = clientName;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String starTime) {
        this.startTime = starTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    private String startTime;
    private String endTime;

    public String getReturnName() {
        return returnName;
    }

    public void setReturnName(String returnName) {
        this.returnName = returnName;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setClientId(Long clientId) 
    {
        this.clientId = clientId;
    }

    public Long getClientId() 
    {
        return clientId;
    }
    public void setTakeTime(Date takeTime) 
    {
        this.takeTime = takeTime;
    }

    public Date getTakeTime() 
    {
        return takeTime;
    }
    public void setBuyPartCount(Long buyPartCount) 
    {
        this.buyPartCount = buyPartCount;
    }

    public Long getBuyPartCount() 
    {
        return buyPartCount;
    }
    public void setTakeAmount(BigDecimal takeAmount) 
    {
        this.takeAmount = takeAmount;
    }

    public BigDecimal getTakeAmount() 
    {
        return takeAmount;
    }
    public void setHaveReturnAmount(BigDecimal haveReturnAmount) 
    {
        this.haveReturnAmount = haveReturnAmount;
    }

    public BigDecimal getHaveReturnAmount() 
    {
        return haveReturnAmount;
    }
    public void setIsSettle(Integer isSettle) 
    {
        this.isSettle = isSettle;
    }

    public Integer getIsSettle() 
    {
        return isSettle;
    }
    public void setReturnId(Long returnId) 
    {
        this.returnId = returnId;
    }

    public Long getReturnId() 
    {
        return returnId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("clientId", getClientId())
            .append("takeTime", getTakeTime())
            .append("buyPartCount", getBuyPartCount())
            .append("takeAmount", getTakeAmount())
            .append("haveReturnAmount", getHaveReturnAmount())
            .append("isSettle", getIsSettle())
            .append("returnId", getReturnId())
            .toString();
    }
}
